/**
 * @description 首页
 * @author 三咲问道
 * @date 2024/12/14
 */

import styles from "./home.module.less";
import { Button, message } from "antd";

function Home() {
  const [messageApi, contextHolder] = message.useMessage();

  const success = () => {
    messageApi.open({
      type: "success",
      content: "This is a success message",
    });
  };

  return (
    <div className={styles.home}>
      {contextHolder}
      <Button type="primary" onClick={success}>
        Success
      </Button>
    </div>
  );
}

export default Home;
